/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package atag.runtime.ln;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author mahanth
 */
public class Timer implements Runnable {

    private int time = 0;

    Timer()
    {
    }

        public int getTime()
        {
            return time;
        }

    public void run() {
         while (true)
        {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException ex) {
                Logger.getLogger(Timer.class.getName()).log(Level.SEVERE, null, ex);
            }
            time++;
        }
    }

}
